home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr05 / todo102.zip / FM_UTL11.ZIP / FM_UTILS.H < prev    next >
Text File  |  1992-08-15  |  2KB  |  63 lines

  1.  
  2. //******************** User Program List structure
  3.  
  4. typedef struct UserProgStruct
  5. {
  6.     BOOL    fActive;            // TRUE if the strings below have been allocated.
  7.     NPSTR    szPath;                // Full path to program to execute.
  8.     NPSTR    szDescription;        // Description to appear in menu.
  9. } USERPROG;
  10.  
  11.  
  12. typedef struct PreLoadProgStruct
  13. {
  14.     BOOL    fActive;            // TRUE if the string below has been allocated.
  15.     NPSTR    szPath;                // Full path to program to execute.
  16.     HINSTANCE hInst;            // Instance handle of program.
  17.     HWND    hWnd;                // Main window handle of program.
  18. } PRELOADPROG;
  19.  
  20.  
  21. //******************** Menu Item identifiers
  22. // An extension's menu item ID must be in the range 1 through 99
  23.  
  24. #define IDM_ABOUT                10
  25.  
  26. #define    IDM_USERPROG            20
  27. #define    IDM_MAXUSERPROG            40
  28. #define    NUM_USERPROGS            ( IDM_MAXUSERPROG - IDM_USERPROG )
  29. #define    NUM_PRELOADPROGS        5
  30.  
  31. //******************** Misc. defines
  32.  
  33. #define PATH_NAME_LEN            260
  34. #define    PROG_DESC_LENGTH        32
  35. #define    ENTRY_TAG_LENGTH        16
  36. #define    MAX_CMDLINE_LENGTH        128
  37.  
  38. //******************** Function prototypes
  39.  
  40. int CALLBACK LibMain( HANDLE hLibInst, WORD wDataSeg, WORD cbHeapSize,
  41.                         LPSTR lpszCmdLine );
  42.  
  43. int CALLBACK WEP( int bSystemExit );
  44.  
  45. HMENU CALLBACK FMExtensionProc( HWND hWndXtension, WORD wMesssage, LONG lParam);
  46.  
  47. void NameMenu( LPSTR szName );
  48.  
  49. int InitializeMenu( HMENU hMenu );
  50.  
  51. void CleanUpMenu( void );
  52.  
  53. void PreLoadPrograms();
  54.  
  55. HWND DetermineProgramHandle( HINSTANCE hInst );
  56.  
  57. void KillPreLoadedPrograms();
  58.  
  59. void UserProgram( WORD wProgNumber, HWND hWndExtension );
  60.  
  61. BOOL CALLBACK AboutDlgProc( HWND hDlg, UINT wMsg, WPARAM wParam, LPARAM lParam );
  62.  
  63.